package cn.com.computer.my.computer.music.web.bean;

import java.io.Serializable;

/**
 * Created by WANGXin on 2017/5/21.
 */
public class MusicBean implements Serializable {
    /**
     *  音乐名称
     */
    private String musicName;
    /**
     * 音乐作者
     */
    private String musicAuthor;
    /**
     * 音乐语言
     */
    private String musicLanguage;
    /**
     * 音乐容量大小
     */
    private String musicCapacity;
    /**
     * 音乐品质
     */
    private String musicQuality;
    /**
     * 音乐
     */
    private String musicFormat;

    public String getMusicName() {
        return musicName;
    }

    public void setMusicName(String musicName) {
        this.musicName = musicName;
    }

    public String getMusicAuthor() {
        return musicAuthor;
    }

    public void setMusicAuthor(String musicAuthor) {
        this.musicAuthor = musicAuthor;
    }

    public String getMusicLanguage() {
        return musicLanguage;
    }

    public void setMusicLanguage(String musicLanguage) {
        this.musicLanguage = musicLanguage;
    }

    public String getMusicCapacity() {
        return musicCapacity;
    }

    public void setMusicCapacity(String musicCapacity) {
        this.musicCapacity = musicCapacity;
    }

    public String getMusicQuality() {
        return musicQuality;
    }

    public void setMusicQuality(String musicQuality) {
        this.musicQuality = musicQuality;
    }

    public String getMusicFormat() {
        return musicFormat;
    }

    public void setMusicFormat(String musicFormat) {
        this.musicFormat = musicFormat;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MusicBean musicBean = (MusicBean) o;

        if (musicName != null ? !musicName.equals(musicBean.musicName) : musicBean.musicName != null) return false;
        if (musicAuthor != null ? !musicAuthor.equals(musicBean.musicAuthor) : musicBean.musicAuthor != null)
            return false;
        if (musicLanguage != null ? !musicLanguage.equals(musicBean.musicLanguage) : musicBean.musicLanguage != null)
            return false;
        if (musicCapacity != null ? !musicCapacity.equals(musicBean.musicCapacity) : musicBean.musicCapacity != null)
            return false;
        if (musicQuality != null ? !musicQuality.equals(musicBean.musicQuality) : musicBean.musicQuality != null)
            return false;
        return musicFormat != null ? musicFormat.equals(musicBean.musicFormat) : musicBean.musicFormat == null;
    }

    @Override
    public int hashCode() {
        int result = musicName != null ? musicName.hashCode() : 0;
        result = 31 * result + (musicAuthor != null ? musicAuthor.hashCode() : 0);
        result = 31 * result + (musicLanguage != null ? musicLanguage.hashCode() : 0);
        result = 31 * result + (musicCapacity != null ? musicCapacity.hashCode() : 0);
        result = 31 * result + (musicQuality != null ? musicQuality.hashCode() : 0);
        result = 31 * result + (musicFormat != null ? musicFormat.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "MusicBean{" +
                "musicName='" + musicName + '\'' +
                ", musicAuthor='" + musicAuthor + '\'' +
                ", musicLanguage='" + musicLanguage + '\'' +
                ", musicCapacity='" + musicCapacity + '\'' +
                ", musicQuality='" + musicQuality + '\'' +
                ", musicFormat='" + musicFormat + '\'' +
                '}';
    }
}
